hvm bios: add PMM (a memory manager during POST)
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 23 Jan 2009 12:50:14 +0000 (12:50 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 23 Jan 2009 12:50:14 +0000 (12:50 +0000)
commitb08c16ec2fb2b84deb8dc72359526f7dc92a699e
tree63489ecc6e0ffdd82277256a51df7e8d124854d1
parent26181d3763cdddedbb9d948391f23900cd48502d
hvm bios: add PMM (a memory manager during POST)

The PMM (POST Memory Manager) offers malloc/free functionality
for PCI option ROMs during POST (Power On Self Test).

This patch adds a PMM functionality to the guest BIOS.

For example, the option ROM on LSI Logic SAS card uses PMM and
failed to initialize the device without PMM.  Thus, the HVM can't
boot up directly from the passthroughed SCSI disk.
gPXE also uses PMM (I don't know what happens without PMM).

With this patch, we succeeded in SAS boot of HVM.

For further information about PMM:
http://www.phoenix.com/en/OEM-ODM/Customer+Services/White+Papers-Specs/PC+Industry+Specifications.htm
http://www.phoenix.com/NR/rdonlyres/873A00CF-33AC-4775-B77E-08E7B9754993/0/specspmm101.pdf

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
tools/firmware/rombios/32bit/Makefile
tools/firmware/rombios/32bit/pmm.c [new file with mode: 0644]
tools/firmware/rombios/32bitprotos.h
tools/firmware/rombios/rombios.c